/*
 * Copyright 2011-2020 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0.
 * See `LICENSE` in the project root for license information.
 */

package me.ijleex.mgmt.system.user.entity;

import org.apache.ibatis.type.Alias;

import me.ijleex.mgmt.framework.entity.EntitySupport;

/**
 * 用户&角色关系 表 t_mgmt_user_role
 *
 * @author liym
 * @since 2019-03-14 11:43:16 By 'codegen'
 */
@Alias("UserRole")
public class UserRole extends EntitySupport {

    /** ID */
    private Integer id;
    /** 用户ID */
    private Long userId;
    /** 角色ID */
    private Long roleId;
    /** 备注 */
    private String remarks;

    /**
     * 授权给指定用户的角色ID（列表），逗号分隔
     *
     * @since 2019-03-19 14:36
     */
    private String roleIds;

    public UserRole() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(String roleIds) {
        this.roleIds = roleIds;
    }

}
